home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / minix-faq < prev    next >
Encoding:
Internet Message Format  |  1994-05-17  |  17.0 KB

  1. Subject: MINIX Frequently Asked Questions (Last Changed: 30 April 1994)
  2. Newsgroups: comp.answers,comp.os.minix,news.answers
  3. From: overby@cray.com (Glen Overby)
  4. Date: 15 May 94 16:55:24 CDT
  5.  
  6. Archive-name: minix-faq
  7. Version: $Id: minix-faq,v 1.13 1994/05/01 01:37:36 overby Exp $
  8.  
  9. If you have questions AND ANSWERS to contribute to this FAQ sheet,
  10. please send them to me, overby@cray.com.  I'm looking for
  11. contributions to this FAQ, not questions from people who expect me to
  12. give them answers.
  13.  
  14.                  Frequently Asked Questions on Comp.Os.MINIX
  15.  
  16. This Frequently Asked Questions (FAQ) list is intended to accompany the
  17. Minix Information Sheet.  Some of the information here is duplicated from
  18. the Information Sheet when deemed appropriate.
  19.  
  20. In creating this, I have attempted to recall the Great Questions (and their
  21. answers) as well as the Great Discussions from the net.  Many thanks to
  22. everyone who has contributed to this document.
  23.  
  24. Several things to remember when you ask questions on the net:
  25.  
  26.       Supply enough information for people to actually help you.  Things
  27.       like what Minix version, your hardware configuration, and so-on are
  28.       almost always necessary to not have to take shots in the dark.  If you
  29.       are reluctant to tell any or all of this, don't expect a good answer.
  30.  
  31.       There are some questions for which there is no answer, because nobody
  32.       has encountered the problem previously or there is no good solution to
  33.       the problem.
  34.  
  35. 1.  WHERE CAN I GET MINIX?
  36.      Minix is sold by Prentice-Hall, Inc. and  their  authorized  distribu-
  37.      tors.  They hold the Copyright on Minix, and sell it for profit (or at
  38.      least we assume they make a profit on it).
  39.  
  40.                      IT IS NOT AVAILABLE FOR ANONYMOUS FTP!
  41.  
  42.      However, demonstration versions for the IBM PC, Atari ST, and Amiga 
  43.      exist and are available via FTP from ftp.cs.vu.nl, plains.nodak.edu 
  44.      and other archive sites. It is also available from Prentice-Hall for
  45.      a small fee (see the Minix information sheet for more details & ISBN
  46.      number).  The Amiga version is available onf "Fish Disk" number 525,
  47.      available from large Amiga FTP sites {don't ask me which ones and
  48.      where -- Glen}, users groups and some retailers.  While far from a 
  49.      working system, the demo is sufficient to get a "feeling" of what 
  50.      Minix does.
  51.  
  52. 2.  WHAT VERSIONS OF MINIX EXIST?  
  53.      The most current version is 1.5.10, known simply as "1.5" if you buy it
  54.      from Prentice-Hall.  Upgrade "diffs" have been posted to the net over
  55.      the past several months; consult an archive site listed in the
  56.      Information Sheet to find that.  Prentice-Hall has been shipping ALL
  57.      versions of Minix 1.5 for several months.
  58.  
  59.      !!!!! PRENTICE HALL IS SHIPPING 1.5.10, BUT THEY CALL IT 1.5 !!!!!
  60.  
  61. 3.  BUT I'VE HEARD OF THIS A NEWER VERSION, 1.6.16.
  62.      Yes, that sort of exists; it is a mid-development beta release for the
  63.      PC (only) released to beta-testers.
  64.  
  65. 4.  HOW DOES PDP 11/44 MEMORY MANAGEMENT WORK?
  66.      This was the first big off-the-topic discussion on the group, and it's
  67.      still  not  an  appropriate topic, so if you are still intrigued about
  68.      pdp-11 memory management, consult the DEC processor handbooks, or some
  69.      harmless newsgroup like alt.dev.null.
  70.  
  71. 5.  PLEASE SUBSCRIBE ME TO THE MAILING LIST
  72.      Why ask 26,000 people to do that, when there is one person who can,
  73.      and you can ask a computer to do it for you?
  74.  
  75.      If you are on bitnet or arpanet, you can get this newsgroup via a
  76.      mailing list, info-minix.  To subscribe to the list, send a message to
  77.      listserv@vm1.nodak.edu (internet) or listserv@ndsuvm1 (bitnet) saying:
  78.  
  79.                signup minix-l your_full_name
  80.  
  81.      If you have trouble, contact the listserv maintainer at
  82.      postmaster@vm1.nodak.edu
  83.  
  84. 6.  PLEASE UNSUBSCRIBE ME FROM THE MAILING LIST
  85.      Use the same procedure as for subscribing, but use  "unsubscribe"  in-
  86.      stead of "signup".
  87.  
  88. 7.  WHAT IS THE ROOT PASSWORD?
  89.      It's in the book, on pages 373 (login "ast") and 380  (login  "root").
  90.      If you didn't buy the book, that's only the start of your problems.
  91.  
  92. 8.  MINIX DOESN'T WORK WITH MY HARD DISK.
  93.      There are many potential sources of this.  Several are:
  94.  
  95.      You are running an RLL controller.  You must change "NR_SECTORS" in the
  96.      configuration  file,  <minix/config.h>  from 17 (standard for MFM con-
  97.      trollers) to 25 (Adaptec controllers) or 26 (Western Digital and  oth-
  98.      ers).
  99.  
  100. 9.  IS THERE A SCSI DRIVER FOR MINIX?
  101.      The following info applies only to PCs.
  102.  
  103.      All SCSI controllers work differently, from the primitive Seagate ST01,
  104.      to the smarter Always IN-2000, and Adaptec with it's own on-board CPU.
  105.  
  106.      Magnus Doell has released his driver for the ST-02, and James da
  107.      Silva has written one for the Adaptec 154X.  They can be found
  108.      on plains.nodak.edu in, respectively,
  109.         pub/Minix/pc/scsi07a.tar.Z
  110.         pub/Minix/usenet/1991.Jul/ahascsi1.0.shar
  111.  
  112.      The ROM wini driver should also run most SCSI controllers but you
  113.      lose protected mode capability.
  114.  
  115.      Amiga Minix has support for Commodore SCSI hard disks in the v1.5.10.1
  116.      update.
  117.  
  118. 9A.  WHAT TAPE DRIVES WORK WITH MINIX?
  119.      Minix comes from Prentice Hall with no support for tape drives.
  120.  
  121.      For the PC, James da Silva has written a SCSI driver for Adaptec
  122.      154X type controllers (see section on SCSI support).  This driver
  123.      provides support for SCSI tape drives; there are reports of
  124.      people successfully using it with Archive Viper tape drives (NB:
  125.      not all Archive Viper drives have a SCSI interface!)
  126.  
  127. 10.  THE SINGLE THREADED FILESYSTEM IS A REAL BOTTLENCK.
  128.      True.  It's only noticeable when you  are  running  massive  background
  129.      processes, or putting multiple users on your computer.
  130.  
  131.      This "problem" has been recently "fixed" and the "solution" posted to
  132.      the net.  See your nearby bit-bucket (archive site) for it!
  133.  
  134.      You've got the source.  Fix it.
  135.  
  136. 11.  IS THERE A 386 MINIX?
  137.      Minix 1.5.10/PC runs on 80286 and 80386 systems using 80286  protected
  138.      mode  (so  all  your memory is used for programs, rather than as bank-
  139.      switched memory "windows" or a big RAM disk).  There is an  experimen-
  140.      tal   32-bit   kernel   from   Bruce  Evans.   It  is  available  from
  141.  
  142.      sirius.ucs.adelaide.edu.au: pub/minix/local
  143.      plains.nodak.edu:pub/Minix/oz
  144.  
  145. 12.  I HAVE AN OLD VERSION OF MINIX. HOW CAN I UPGRADE?
  146.      You need to get an upgrade kit from one of the archive sites; see  the
  147.      Minix  Information  Sheet  for  a  (supposedly) complete list of sites
  148.      which archive Minix-related bits.
  149.  
  150.      Also, read the Upgrading Tutorial -- it was meant to help.
  151.  
  152. 13.  WHAT SHELLS EXIST FOR MINIX?
  153.      sh:     Your typical Bourne shell. Comes with distribution Minix
  154.      clam:   Tcsh-like shell, runs under Minix & real Unix's. Available
  155.              from ftp sites sirius, ccadfa, plains & others
  156.      ksh:    Korn shell, ported to Minix. Diffs for Minix on plains.
  157.      marvin: A kid's shell. Posted months ago in comp.os.minix.
  158.      emacs:  Does this count as a shell? Works only under 68K-Minix's
  159.              and perhaps 386-Minix.
  160.      tcsh:   The binaries for 68K-Minix and 386-Minix tcsh are available
  161.              from ftp.uni-koeln.de.  The v6.02 tcsh source distribution
  162.              contains configuration information for 386-Minix systems.
  163.  
  164. 14.  IS THERE X-WINDOWS FOR MINIX?
  165.      No, there is not.  It would be difficult if not impossible  (that  was
  166.      meant as a challenge!) to put X on Minix because X is huge.  Unless you
  167.      have many megabytes of memory, it would be impossible to run X clients
  168.      and  servers  on  one  machine.  It will also certainly require 32-bit
  169.      mode operation.
  170.  
  171.      Don't be fooled by the (only) graphic user interface for MinixPC,
  172.      Mini-X. Contrary to what its name seems to imply, this interface has
  173.      nothing to do with a X-Windows implementation under Minix.
  174.  
  175. 15.  WHY CAN'T MY PC BOOT PC-MINIX FROM 1.44MB FLOPPY DISKS ?
  176.      There's a couple of reasons for this.  First, straight out of the box,
  177.      MINIX  doesn't  plan on dealing with 1.44Mb floppy disks.  The entries
  178.      in /dev should be set up specifically for your machine,  so  pick  out
  179.      the correct entries here:
  180.           mknod /dev/fd0-dsdd5in b 2  4 360               # Drive A, 360K 5.25"
  181.           mknod /dev/fd0-dshd5in b 2  8 1200              # Drive A, 1.2M 5.25"
  182.           mknod /dev/fd0-dsdd3in b 2 16 720               # Drive A, 720K 3.5"
  183.           mknod /dev/fd0-dshd3in b 2 28 1440              # Drive A, 1.44M 3.5"
  184.                      ^^^             ^^
  185.      Change 'fd0' to 'fd1' and add 1 to the minor device number  to  create
  186.      an entry for floppy drive B.  It may be a good idea to link the gener-
  187.      ic  floppy  disk  entries  (/dev/fd0  and  /dev/fd1)  to  the   proper
  188.      /dev/fd0-ds{whatever}  entries for your machine, so that programs like
  189.      dosread continue to work.
  190.  
  191.      All possible formats are:
  192.         mknod /dev/fd0  b 2  0    0       # Drive A, automatic
  193.         mknod /dev/pc0  b 2  4  360       # Drive A, 360K 5.25"
  194.         mknod /dev/at0  b 2  8 1200       # Drive A, 1.2M 5.25"
  195.         mknod /dev/qd0  b 2 12  360       # Drive A, 360K in a 720K 5.25"
  196.         mknod /dev/ps0  b 2 16  720       # Drive A, 720K 3.5" and 5.25"
  197.         mknod /dev/pat0 b 2 20  360       # Drive A, 360K in a 1.2M 5.25"
  198.         mknod /dev/qh0  b 2 24  720       # Drive A, 720K in a 1.2M 5.25"
  199.         mknod /dev/PS0  b 2 28 1440       # Drive A, 1.44M 3.5"
  200.  
  201.      Second reason your PC won't boot from 1.44Mb floppy disks, even though
  202.      you've  fixed  up  the  floppy  disk  device entries: tools/bootblok.s
  203.      doesn't know about 1.44M disks, so it blindly loads the boot image in-
  204.      correctly  and  then tries to execute it.  Get Guy Helmer's bootblok.s
  205.      from an archive site, or get shoelace.
  206.  
  207. 16.  WHAT'S WRONG WITH 'ps'?
  208.      You   need   to   have   a   copy   of   the   compiled   kernel    in
  209.      /usr/src/kernel/kernel, mm in /usr/src/mm/mm, and fs in /usr/src/fs/fs
  210.      for ps to read the namelist out of.  The PC Minix compiler must have the
  211.      "-s" flag to build the symbol table.  Note that this MUST be the SAME
  212.      kernel that is booted.
  213.  
  214. 17.  HOW IS THE FORK(2) SYSTEM  CALL  IMPLEMENTED  ON  THE  68K  PROCESSORS
  215.      WITHOUT A MEMORY MANAGEMENT UNIT?
  216.      This is done by shadowing. This is copying the memory around  as  long
  217.      as  both  child  and parent processes do exist.  Although this seems very
  218.      expensive, it is not because most processes exec(2) almost immediately
  219.      after  the fork(). But most terminal emulators who fork() en keep run-
  220.      ning loose.
  221.  
  222. 18.  WHY IS KERMIT SO ABSURDLY SLOW UNDER MINIX-68k?
  223.      See the above question.  Kermit forks so that one process  listens  to
  224.      the  serial  port  and  writes  to  the  screen, and the other process
  225.      listens to the keyboard and writes to  the  serial  port.   Since  the
  226.      second  process  never  "exec's",  the  two  processes are continually
  227.      swapped in and out of one memory slot.
  228.  
  229. 19.  IS THERE ALSO A 64K+64K LIMIT FOR MINIX 68K & MINIX 386?
  230.      For minix 68k, there isn't. For minix 386 there isn't provided you use
  231.      the proper compiler (This means no ACK)
  232.  
  233. 20.  DOES MINIX HAVE BERKELY JOB CONTROL?
  234.      No. Nor does it have its associated signals like SIGSTOP, SIGCONT etc.
  235.  
  236. 21.  DOES MINIX SUPPORT TCP/IP AND NFS
  237.      No. TCP/IP does exist as an experimental package.  NFS is a dream  for
  238.      many ;-)
  239.  
  240. 22.  WHY CAN'T I RECOMPILE KERMIT OR ELLE ON PC-MINIX 1.5?
  241.      You can't assemble Kermit or elle on a PC using Minix 1.5 or  earlier;
  242.      asld  reports an "out of space" error, which means it ran out of space
  243.      in the output object file.  That is why the  binaries  are  (certainly
  244.      were) on the P-H distribution.  Those binaries were compiled by a dif-
  245.      ferent, more efficient compiler.
  246.  
  247. 23.  WHY AREN'T THE MANUALS ONLINE? WHERE CAN I GET THE MANUALS?
  248.      The online manuals are available via anonymous ftp from
  249.      ftp.vmars.tuwien.ac.at (128.130.39.16) in the file 
  250.      /pub/minix/net/manpages.tar.Z.  To extract the manuals, ftp the
  251.      file binary-wise, uncompress it and extract using tar when you
  252.      are in your /usr/man directory. Each manual is in a separate
  253.      file, and to use the distribution 1.5 man(1) you will need to
  254.      read the source to man(1) to see how to create the single manual
  255.      file.
  256.  
  257.      Alternatively, the source to a more Unix-like man(1) is  available  on
  258.      ccadfa  in  the  file  pub/minix/mansrc.Z.  To  extract  the code, ftp
  259.      binary-wise, uncompress and unshar. Before compiling the code,  modify
  260.      the header file to reflect your system setup. Compile the code. If you
  261.      are using less(1) as a pager,  you  will  need  to  modify  main.c  in
  262.      nroff(1); instructions are included in mansrc.Z
  263.  
  264. 24.  WHAT IS THE DIFFERENCE BETWEEN THE 80386 AND THE 386sx?
  265.      There is no difference between 386sx/386dx except for the bus  (24-bit
  266.      addresses and 16-bit data).
  267.  
  268. 25.  DOES MINIX SUPPORT MAIL/NEWS/UUCP?
  269.      As shipped from Prentice Hall, Minix 1.5 include only local Email, and
  270.      no Uucp nor Usenet News support. Various additional packages from the
  271.      net exist:
  272.      There are two UUCP implementations, by Fred van Kempen and by Will Rose.
  273.      Fred wrote an Email interface, UMail/WMail and a news software, WNews.
  274.      A BNews implementation and the Tass newsreader from alt.sources also
  275.      exist under Minix. All these packages are available via anonymous FTP
  276.      from archive sites.
  277.  
  278. 26.  WHY IS THE DIRECTORY ON PLAINS CALLED "oz" INSTEAD OF 386
  279.  
  280.      Plains maintains several "shadows" of other sites.  To allow easy
  281.      automatic updating of packages from the remote sites, we place
  282.      everything from that site in a directory reminiscent of that site's
  283.      name.  To absorb the remote site's files into the local directory
  284.      structure would frustrate this, and it probably wouldn't happen.
  285.  
  286. 27. WHERE CAN I GET THE NEW ANSI C COMPILER?
  287.     (from Andy Tanenbaum's posting <13286@star.cs.vu.nl> 11 Mar 92)
  288.  
  289.     There are three compilers available:
  290.  
  291.       - ANSI C, conforming to ANS X3.159-1989
  292.  
  293.       - Modula-2, conforming to
  294.           "Report on The Programming Language Modula-2", in "Programming in
  295.       Modula-2, 3rd ed." by Niklaus Wirth, Springer-verlag, 1983
  296.  
  297.       - Pascal confrming to level 1 of BSI standard BS 6192: 1982 (ISO 7185), 
  298.           with a few small exceptions
  299.  
  300.     Also, a Modula-2 makefile generator and some utilities for handling
  301.     relocatable object files are included (aal, nm, size, strip, etc).
  302.     Complete libraries for ANSI C, Pascal, and Modula 2 are provided. 
  303.  
  304.     This package is available in 4 different versions:
  305.  
  306.       - 5.25" DS/DD floppies for 8088/286/386 (4 360K floppies);
  307.       - 5.25" DS/HD floppies for 8088/286/386 (1 1.2M floppy);
  308.       - 3.5"  DS/DD floppies for 8088/286/386 (2 720K floppies);
  309.       - 3.5"  DS/DD floppies for Commodore Amiga or Atari ST (2 720K floppies).
  310.     
  311.     Many problems with the old Minix C compiler have been resolved:
  312.       - All versions have separate as and ld programs.  Asld is gone.
  313.       - Floating point is now supported
  314.       - Library is greatly improved and is ANSI conformant
  315.       - A program aal is provided to manage libraries (ranlib-like)
  316.     
  317.     The package is available from two companies:
  318.     
  319.     Transmediair Products & Support B.V.    Unipress Software
  320.     Box 297                    2025 Lincoln Highway
  321.     3720 AG  Bilthoven                Edison, NJ 08817
  322.     The Netherlands                U.S.A.
  323.     Tel: +31 30 281820                Tel: +1 908 287 2100
  324.     FAX: +31 30 292294                FAX: +1 908 287 4929
  325.                             Email: msk@unipress.com
  326.     
  327.     Transmediair charges US $200,- for the 4 floppy PC version, US $150,-
  328.     for the other versions. Unipress charges US $199,- for all versions.
  329.  
  330. 28. BUT THERE *IS* AN AMIGA DEMO DISK!
  331.  
  332.     It can be found on Fish disk 525. Fish disks are available at ftp 
  333.     sites carrying Amiga stuff.  They should also be available from various 
  334.     Amiga groups and retailers.
  335.  
  336. 29. Is there a way to make a file system *not* use all of a partition or 
  337. floppy disk? 
  338.  
  339. There are at least three utilities to do this. They all put the image
  340. to be booted from into a normal file on a Minix file system and change
  341. the boot block, so that it can read a file from a Minix FS and start
  342. it.
  343.  
  344. Shoelace is the oldest of these utilities. It includes a lot of bells
  345. and whistles (you can check a file system, load the components of
  346. Minix seperately, start a debugger before Minix, so you can debug
  347. Minix at start up, ...), but is a little slow and a little difficult
  348. to set up. I have been using it for a long time now and am quite happy
  349. with it.
  350.  
  351. MXboot. Sorry, don't know anything about it, except that it exists.
  352.  
  353. Boot Monitor: Haven't tried it out yet, just read the docu. Faster and
  354. simpler than shoelace, and depends less on hardware. Does not let you
  355. choose partition on startup (You could still use shoelace for that or
  356. write your own program). It has one feature which tempts me to switch
  357. over to it: It lets you start up Minix in protected mode. While this
  358. won't help you with standard Minix it makes it possible to remove all
  359. the 16-bit stuff from the kernel.
  360.  
  361.  [ Peter J. Holzer, Technical University Vienna, hp@vmars.tuwien.ac.at ]
  362.  
  363.